package test0;

import org.junit.Test;
import test0.inter.MyInterface;

/**
 * TODO:describe what the class or interface does.
 *
 * @author RunningDigua
 * @date 2021/1/4
 */
public class Student {

    public void read(MyInterface myInterface){
        myInterface.doSomething();
    }

    @Test
    public  void mainMethod() {

        read(new MyInterface() {
            @Override
            public void doSomething() {
                System.out.println("do something");
            }
        });
    }



}
